package org.playground.booking.service;

import javassist.NotFoundException;
import org.playground.booking.utils.PlaygroundBookingException;
import org.xml.sax.SAXException;

import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;
import java.net.UnknownHostException;
import java.security.NoSuchAlgorithmException;

public interface IWechatService {
    String exchangeOpenid(String appId, String exchangeCode) throws PlaygroundBookingException, NotFoundException;

    String applyPayment(String appId,Long orderId, String openId, int amount) throws IOException, PlaygroundBookingException, NoSuchAlgorithmException, IllegalAccessException, SAXException, ParserConfigurationException;

}
